package com.cltech.service.sys;


import com.cltech.dto.SysUserDto;
import com.cltech.dto.TreeNode;
import com.cltech.entity.sys.SysPermission;
import com.cltech.entity.sys.SysRole;
import com.cltech.entity.sys.SysUser;
import com.cltech.frame.base.BaseService;
import com.cltech.frame.result.ResponseBean;
import com.cltech.frame.shiro.Token;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * Created by Administrator on 2018/9/9.
 */
public interface SysUserService  extends BaseService<SysUser, String> {
    ResponseBean<SysUser> findByAccountAndState(String account, String state);

    ResponseBean<Map<String,Token>> login(String account, String password);

    ResponseBean<Map<String,Token>> refreshToken(String refreshToken);

    Page<SysUser> findAll(Map<String, String[]> queryParameters, int pageNo, int pageSize);

    ResponseBean<SysUser> addOrUpdate(SysUserDto dto);

    ResponseBean<SysUser> updateState(String id, String state);


   /* ResponseBean<Void>changePassword(String oldPassword,String password);

    ResponseBean<Void>changePassword(String password);*/
}
